xsm: Implement missing functions in XSM dummy module
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 10:17:50 +0000 (10:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 10:17:50 +0000 (10:17 +0000)
I am implementing some missing interface functions in the XSM dummy
module. Also deactivating some debugging output.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/util/xsm/dummy/dummy.py

index 66fc8c2bd27122c87926d9e2fce95d19e8edbd76..b82e1b9ff5d1655de7f619c4aa45c95f02904992 100644 (file)
@@ -33,7 +33,6 @@ xmlrpc_exports = [
 def err(msg):
     """Raise XSM-dummy exception.
     """
-    sys.stderr.write("XSM-dummyError: " + msg + "\n")
     raise XSMError(msg)
 
 def on():
@@ -123,3 +122,12 @@ def get_domain_label(domain):
 
 def set_domain_label():
     err("Command not supported under xsm 'dummy' module.")
+
+def dump_policy():
+    pass
+
+def dump_policy_file():
+    pass
+
+def get_ssid(domain):
+    err("No ssid has been assigned to any domain under xsm dummy module.")